package com.accp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.accp.dao.GoodsMapper;
import com.accp.pojo.Goods;
import com.accp.service.GoodsService;



@Service("goodsService")
public class GoodsServiceImpl implements GoodsService{

	
	@Autowired
	private GoodsMapper goodsMapper;

	@Override
	public int deleteByPrimaryKey(Integer goodsid) {
		// TODO Auto-generated method stub
		return goodsMapper.deleteByPrimaryKey(goodsid);
	}

	@Override
	public int insert(Goods record) {
		// TODO Auto-generated method stub
		return goodsMapper.insert(record);
	}

	@Override
	public int insertSelective(Goods record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Goods selectByPrimaryKey(Integer goodsid) {
		// TODO Auto-generated method stub
		return goodsMapper.selectByPrimaryKey(goodsid);
	}

	@Override
	public int updateByPrimaryKeySelective(Goods record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(Goods goods) {
		// TODO Auto-generated method stub
		return goodsMapper.updateByPrimaryKey(goods);
	}

	@Override
	public List<Goods> selectAllGoods() {
		// TODO Auto-generated method stub
		return goodsMapper.selectAllGoods();
	}

	@Override
	public List<Goods> selectGoodsToName(String goodsName) {
		// TODO Auto-generated method stub
		return goodsMapper.selectGoodsToName(goodsName);
	}
	
	
	
	
}
